from pao_python.pao import log
from app.idmis_app import IDMISApp

# web_origins = ["http://192.168.31.86:3000", "https://192.168.97.74:3000","https://192.168.95.80:3000",'http://120.237.15.234:3000', 'http://192.168.95.42:3000', 'http://192.168.95.43:3000','http://localhost:3000']
web_origins = '*'
# 启动标识管理系统
app = IDMISApp(
    __name__,
    address='0.0.0.0',
    port=3010,
    web_origins=web_origins,
    db_addr="127.0.0.1",
    db_port=27017,
    db_name='IDMIS',
    inital_password='123456',
    web_path="C:\IndustryInternetSign\\build",
    upload_file="upload",
    certificate_path="certificate/server.crt",
    private_path="certificate/server.key")

app.run()
